﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raspare;
using Xamarin.Forms;

namespace SharedMobilePlatform
{
	public class InfoPage : ContentPage
	{
		public InfoPage (Karaktär character)
		{
            Title = "Info";
			Content = new StackLayout {
				Children = {
                    new Label { Text = "Poäng", FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label))},
					new Label { Text = "Rollpoäng: " + character.Rollpoäng + System.Environment.NewLine +
                                "Veteranpoäng: " + character.Veteranpoäng + "/" + character.AntalÄventyr + System.Environment.NewLine +
                                "Karma: " + character.Karma + System.Environment.NewLine, FontSize = Device.GetNamedSize (NamedSize.Medium, typeof(Label)) },
                    new Label { Text = "Fördelar", FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) },
                    new Label { Text = String.Join(System.Environment.NewLine, character.Fördelar), FontSize = Device.GetNamedSize (NamedSize.Medium, typeof(Label)) }
				}
			};
		}
	}
}
